package com.shike.hq.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shike.hq.entity.Inspection;
import com.shike.hq.mapper.InspectionMapper;
import com.shike.hq.service.InspectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * InspectionService的接口实现类
 */
@Service
public class InspectionServiceImpl extends ServiceImpl<InspectionMapper, Inspection> implements InspectionService {

    @Autowired
    private InspectionMapper inspectionMapper;

    @Override
    public ArrayList<Inspection> selectAllInspectionByAreaId(long areaId) {
        return inspectionMapper.selectAllInspectionByAreaId(areaId);
    }

    @Override
    public ArrayList<Inspection> selectInspectionsByGroupId(long groupId) {
        return inspectionMapper.selectInspectionsByGroupId(groupId);
    }
}
